OPC Studio User's Guide and Reference
StatusCode Property (UABaseVariable<TValue,TAttribute>)



OpcLabs.EasyOpcUA Assembly > OpcLabs.EasyOpc.UA.InformationModel Namespace > UABaseVariable<TValue,TAttribute> Class : StatusCode Property
Contains the status code for the result of the operation.
Syntax
'Declaration
 
<MappingTagAttribute("OpcLabs.EasyOpc.UA.InformationModel.VariableValue")>
<NotNullAttribute()>
<UADataAttribute(Kind=UADataMappingKind.StatusCode, Operations=UADataMappingOperations.ReadAndSubscribe)>
Public Property StatusCode As UAStatusCode
'Usage
 
Dim instance As UABaseVariable(Of TValue,TAttribute)
Dim value As UAStatusCode
 
instance.StatusCode = value
 
value = instance.StatusCode
[MappingTag("OpcLabs.EasyOpc.UA.InformationModel.VariableValue")]
[NotNull()]
[UAData(Kind=UADataMappingKind.StatusCode, Operations=UADataMappingOperations.ReadAndSubscribe)]
public UAStatusCode StatusCode {get; set;}
[MappingTag("OpcLabs.EasyOpc.UA.InformationModel.VariableValue")]
[NotNull()]
[UAData(Kind=UADataMappingKind.StatusCode, Operations=UADataMappingOperations.ReadAndSubscribe)]
public:
property UAStatusCode^ StatusCode {
   UAStatusCode^ get();
   void set (    UAStatusCode^ value);
}
Requirements

Target Platforms: .NET Framework: Windows 10 (selected versions), Windows 11 (selected versions), Windows Server 2016, Windows Server 2022; .NET: Linux, macOS, Microsoft Windows

See Also